package ruifeng.zcj.dig.ui.forum.category;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import org.greenrobot.eventbus.EventBus;

import butterknife.Bind;
import butterknife.ButterKnife;
import ruifeng.zcj.dig.R;
import ruifeng.zcj.dig.groble.FragmentArgs;
import ruifeng.zcj.mybase.base.BaseActivity;

/**
 * Created by Administrator on 2016/10/19 0019.
 */
public class ChooseCategoryActivity extends BaseActivity {
    @Bind(R.id.activity_top_left)
    ImageView mActivityTopLeft;
    @Bind(R.id.activity_top_center)
    TextView mActivityTopCenter;
    @Bind(R.id.activity_top_right)
    ImageView mActivityTopRight;
    @Bind(R.id.activity_top_right_text)
    TextView mActivityTopRightText;


    @Override
    public int getLayoutId() {
        return R.layout.choose_category;
    }

    @Override
    public void initView() {
        mActivityTopCenter.setText("分类");

        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            FragmentArgs args = (FragmentArgs) bundle.get("categoryBudle");
            Integer category = (Integer) args.get("category");
            EventBus.getDefault().post(category);// 不需要关闭acitivity
        }

    }


}
